'use strict';

// Setting up route
angular.module('dashboard')
.config(['$stateProvider', '$urlRouterProvider',
	function($stateProvider, $urlRouterProvider) {

		// Redirect to home view when route not found
		$urlRouterProvider.otherwise('/');

		// Dashboard state routing
		$stateProvider.
		state('home', {
			url: '/',
			templateUrl: 'modules/dashboard/views/dashboard-signin.client.view.html',
      authenticate:false
		}).
		state('dashboardMain', {
			url: '/dashboard/main',
			templateUrl: 'modules/dashboard/views/dashboard-main.client.view.html',
      authenticate:true
		});
	}
]);